package cn.yqx.bankshop.order.service;




import cn.yqx.bankshop.order.page.PageRequest;
import cn.yqx.bankshop.order.page.PageResult;
import cn.yqx.bankshop.order.pojo.BuOrder;
import com.alibaba.fastjson.JSONObject;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface OrderService {

    List<Map<String,Object>> findSuppliersBySales() ;

    List<Map<String,Object>> findGoodsTop5(Long supplier) ;

    List<Map<String,Object>> findEvaluateBySupplier(Long supplier) ;

    List<Map<String,Object>> findGoodsBySales() ;

    PageResult getOrderAssessList(PageRequest pageRequest, String assessType, Long goodsId , String assessTime) ;

    Map<String,Integer> getAssessCountByGoodId( Long goodsId , String assessTime) ;

    PageResult findOrdersGROUPByOrderNo(PageRequest pageRequest , Map<String ,Object> parameterMap) ;

    List<BuOrder> findAllOrders() ;

    int updateGoodPicture(Long goodsId ,String picture) ;

    Map<String,Integer> findOrdersByStatus(Map<String,Object> map) ;

    List<BuOrder> findOrderByNo(String orderId) ;

    List<BuOrder> findRecentOrder(Long userId) ;

    PageResult reconciliation(PageRequest pageRequest, JSONObject parameter) ;

    List<BuOrder> findOrdersByaccountNo(Long userId ,String accountNo) ;

    HashMap<String,Integer> findReconciliationByStatus(Map map) ;

    Map<String,Object> consumptionByUserid(Long userId);
}
